<?php
@session_start();
$strsitename="Elite";
if (!function_exists ("__autoload"))
{
function __autoload($strClassName)
{

	$arrExtensions = array(
							'.php',
							'.class.php',
							'.ini',
							'.html'
					);
				
	$intPosition=strpos("$strClassName",'_');
	$doc_root = $_SERVER['DOCUMENT_ROOT'];
    $PATH = "$doc_root/sitemanager/";
	$strFolderName=substr($strClassName,0,$intPosition);
   	$strFileName=substr($strClassName,$intPosition+1);
 
	if($strFolderName!="")
	{
		foreach ($arrExtensions as $strExtension)
		{
	        $strFileUrl=$PATH.$strFolderName."/".$strFileName.$strExtension;
			//echo $strFileUrl;
	      	
	      
	         if(file_exists($strFileUrl))
		     {
		     	
		     	 require_once($strFileUrl);
		     }
		}
	}

		
}
}



